﻿using System;
using System.Linq;
using System.Collections.Generic;
using pygs.Application;

namespace pygs
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main()
        {
            AppSerivces.Instance.InitializeCore();
            Registration.RegisterComponents(AppSerivces.Instance.componentRegistry);
            CustomApplication app = (CustomApplication)AppSerivces.Instance.componentRegistry.Implementation("application");
            AppSerivces.Instance.Startup();
            app.Run();
            AppSerivces.Instance.Shutdown();
            AppSerivces.Instance.FinalizeCore();
        }
    }
}